import Person from "../practice_9/person.js";
import Class from "../practice_9/class.js";

 let klass = new Class;
class Student extends Person{
    constructor(id,name,age,klass){
        super(id,name,age,klass);
        this.klass = klass;
    }
    introduce(){
        if(this.klass.leader == undefined){
            return `${super.introduce()} I am a Student. I am at Class ${this.klass.number}.`;
        }else{
            return `${super.introduce()} I am a Student. I am Leader of Class ${this.klass.number}.`;
        }
}
}
module.exports = Student;
